from django.conf.urls import patterns, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

handler404 = 'main.views.page_not_found'
handler500 = 'main.views.server_error'

urlpatterns = patterns('',
    # Examples:
    #ir al home
    url(r'^home', 'main.views.home'),

    #manejo de sesion
    url(r'^$', 'main.views.verify_auth'),
    url(r'^login', 'main.views.login'),
    url(r'^logout', 'main.views.logout'),

    #Agregar tabla
    url(r'^add', 'main.views.add'),
    url(r'^new_table', 'main.views.add_table'),

    #modificar tabla
    url(r'^update', 'main.views.update'),
    url(r'^load_data', 'main.views.load_data'),
    url(r'^save_changes', 'main.views.save_changes'),

    #eliminar tablas
    url(r'^delete', 'main.views.delete'),
    url(r'^remove_table', 'main.views.remove_table'),

    #Actions results
    url(r'^results', 'main.views.results'),
    #Account settings display
    url(r'^account', 'main.views.account'),
    #account settings update
    url(r'^acco_update', 'main.views.acco_update'),

    #Settings display
    url(r'^settings', 'main.views.config'),


	#manejo de usuarios
    #url(r'^dashboard/users', 'user_auth.views.users'),
    #url(r'^dashboard/getUser$', 'user_auth.views.get_user'),
    #url(r'^dashboard/addUser/', 'user_auth.views.add_user'),
    #url(r'^dashboard/updateUser/', 'user_auth.views.update_user'),
    #url(r'^dashboard/deleteEditingUser/', 'user_auth.views.delete_editing_userdata'),
    #url(r'^dashboard/user_query/', 'user_auth.views.user_runquery'),

)
